<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	xMode = Request("xMode")
	
	'## ■■ 공정타입 정보 가져오기 ■■■■
	pTypeSQL = "SELECT itemCd, itemNm FROM tblComCode WHERE groupCd='0004' AND flag='Y' ORDER BY itemSeq" 

	Set pTypeRs=Server.CreateObject("ADODB.RecordSet")
	pTypeRs.open pTypeSQL, DbCon, 1
	
	pTypes = ""
	If pTypeRs.eof Or pTypeRs.bof Then 
	Else 
		Do Until pTypeRs.eof Or pTypeRs.bof
		
		pTypes = pTypes & "<option value=""" & pTypeRs("itemCd") & """>" & pTypeRs("itemNm") & "</option>"' & vbcrlf
		pTypeRs.movenext
		Loop 
	End If
	
%>
<!-- #include virtual=/inc/header.inc.asp -->  

<BODY topmargin="0" leftmargin="0">
<!-- #include virtual=/inc/menu.inc.asp -->  

<br>
<div style="text-align:left">
<!-- 검색 영역 시작 -->
<table border="0" cellpadding="0" cellspacing="0" width="1237" style="margin-left:5px">
	<tr height="40">
		<td style="padding: 0px 0 0px 10px;background-image:url(/inc/layout/panel-title-light-bg.gif);font-weight:bold;text-align:left" width="100%" class="lTD_trbl">
			작업명 <input type="text" name="processNm" id="findProcess" class="inputBox" style="width:80px;ime-Mode:active"> &nbsp;
			<input type="button" onClick="grid01List()" value="검 색" class="inputBtn">&nbsp;
			<input type="button" onClick="fnSearchReset()" value="Reset" class="inputBtn">
		</td>
	</tr>
</table>
<!-- 검색 영역 끝 -->

<br>

<!-- 그리드 시작 -->
<table border="0" cellpadding="0" cellspacing="0" width="1235" style="margin-left:5px">
	<tr>
		<td width="100%" class="lTD_trbl" valign="top" style="padding: 5px 5px 5px 5px;">
			<!-- ■■ 단위 공정 그리드 시작 ■■ -->
			<table border="0" cellpadding="0" cellspacing="0" width="590">
				<tr height="24">
					<td style="padding: 0 0 0 0;text-align:left" width="300"><div><input type="text" class="subTitle" style="width:100px;" value="단위작업관리" ReadOnly>&nbsp;<a href="javascript:grid01List()">[새로고침]</a> &nbsp;</div> </td>
					<td style="padding: 0 20 0 0;" align="right" width="290"><B>Total :</B> <span id="grid01Cnt" style="font-weight:bold">0</span></td>
				</tr>
			</table>
			<table border="0" cellpadding="0" cellspacing="0" width="590"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
			<div class="tblContainer" id="gridLayer01" style="width:590px; height:600px; overflow-y:scroll">
			<form name="frmGrid01">
			<table border="0" id="Grid01" width="573" cellpadding="0" cellspacing="0">
				<thead>
				<tr bgcolor="#EEECE7" height="25" align="center">
					<td width="40" class="lTD_0rbl gridTitle">No.</td>
					<td width="100" class="lTD_0rb0 gridTitle">작업명</td>
					<td width="240" class="lTD_0rb0 gridTitle">내용</td>
					<td width="100" class="lTD_0rb0 gridTitle">시간</td>
					<td width="40" class="lTD_0rb0 gridTitle">TYPE</td>
					<td width="50" class="lTD_0rb0 gridTitle">사용</td>
				</tr>
				<tr id="tr01Result" bgcolor="#FFFFFF" height="25" align="center">
					<td colspan="6" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan1" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
				</tr>
				</thead>
				<tbody></tbody>
			</table>
			</form>
			</div>
			<table border="0" width="590" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr align="center" height="30">
								<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv01"></span></td>
							</tr>									
						</table>
					</td>
				</tr>
			</table>
			<!-- ■■ 단위 공정 그리드 끝 ■■ -->
		</td>
		<td valign="top" style="text-align:center; padding-left:5px">					
			<!-- ■■ 단위 공정 정보 표시 시작 ■■ -->
			<table border="0" cellpadding="0" cellspacing="0" width="500">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="490">
						<input type="hidden" name="processCd" id="processCd">
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								작 &nbsp; &nbsp; &nbsp;업 &nbsp; : &nbsp; <input type="text" name="processNm" id="processNm" size="20" class="specialBox"> &nbsp;&nbsp; 시 &nbsp; &nbsp; &nbsp;간 &nbsp; : &nbsp; <input type="text" name="execTime" id="execTime" size="20" class="inputBox">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								내 &nbsp; &nbsp; &nbsp;용 &nbsp; : &nbsp;<input type="text" name="working" id="working" size="37" class="inputBox" style="margin-left:3px"> &nbsp;&nbsp; 
								TYPE &nbsp;:&nbsp; 
								<select name="type" id="type" style="width:75px">
								<%=pTypes%>
								<!--
									<option value="30">일반</option>
									<option value="10">가공</option>
									<option value="20">검사</option>
									<option value="80">포장(외주)</option>
									<option value="90">포장</option>
									<option value="98">출하</option>
								-->
								</select>
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								<select name="flag" id="flag">
									<option value="Y">사용</option>
									<option value="N">사용안함</option>
								</select> &nbsp; &nbsp;<input type="text" id="accessInfo" style="font-weight:normal;width:250px; border:0px">
								<span>
								<input type="button" value="저장" class="inputBtn" onClick="fnSave()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnReset()">
								</span>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
			</table>			
			<!-- ■■ 단위 공정 정보 표시 끝 ■■ -->		
			
			<!-- ■■ 공정 그룹 정보 표시 시작 ■■ -->
			<div id="layProcSet">
			<br>							
			<table border="0" cellpadding="0" cellspacing="0" width="500">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="490">
						<input type="hidden" name="processSet" id="processSet">
						<input type="hidden" name="procTypeCd" id="procTypeCd">
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								[공 &nbsp; &nbsp; 정] &nbsp; &nbsp; &nbsp; &nbsp; 공정명 &nbsp; : &nbsp; <input type="text" name="procTypeNm" id="procTypeNm" size="35" class="specialBox">
							</td>
						</tr>
						<tr>
							<td height="40" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left;">
								<span id="showProcess">&nbsp;</span> 
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								<select name="flag" id="procSetFlag">
									<option value="Y">사용</option>
									<option value="N">사용안함</option>
								</select><input type="text" id="accessInfo" style="font-weight:normal;width:265px; border:0px">
								<input type="button" value="저장" class="inputBtn" onClick="fnProcSetSave()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnProcSetReset()">
							</td>
						</tr>
					</table>
				  </td>
				</tr>
			</table>
			</div>
			<!-- ■■ 공정 그룹 정보 표시 끝 ■■ -->
			<br>
			<!-- ■■ 공정 그룹 그리드 시작 ■■ -->
			<table border="0" cellpadding="0" cellspacing="0" width="500">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="490">
						<tr height="24">
							<td style="padding: 0 0 0 0;text-align:left" width="290"><div><input type="text" class="subTitle" style="width:100px;" value="공정그룹관리" ReadOnly>&nbsp;<a href="javascript:grid02List()">[새로고침]</a> &nbsp;</div> </td>
							<td style="padding: 0 20 0 0;" align="right" width="200"><B>Total :</B> <span id="grid02Cnt" style="font-weight:bold">0</span></td>
						</tr>
					</table>
					<table border="0" cellpadding="0" cellspacing="0" width="490"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
					<div class="tblContainer" id="gridLayer02" style="width:490px; height:342px; overflow-y:scroll">
					<table border="0" id="Grid02" width="473" cellpadding="0" cellspacing="0">
						<thead>
						<tr bgcolor="#EEECE7" height="25" align="center">
							<td width="40" class="lTD_0rbl gridTitle">No.</td>
							<td width="100" class="lTD_0rb0 gridTitle">공정명</td>
							<td width="273" class="lTD_0rb0 gridTitle">공정순서</td>
							<td width="60" class="lTD_0rb0 gridTitle">사용여부</td>
						</tr>
						<tr id="tr02Result" bgcolor="#FFFFFF" height="25" align="center">
							<td colspan="4" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan2" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
						</tr>
						</thead>
						<tbody></tbody>
					</table>
					</form>
					</div>
					<table border="0" width="490" cellpadding="0" cellspacing="0">
						<tr>
							<td align="left" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
								<table width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr align="center" height="30">
										<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv02"></span></td>
									</tr>									
								</table>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
			</table>	
			<!-- ■■ 공정 그룹 그리드 끝 ■■ -->			
		</td>		
		<td width="265">
			<table border="0" cellpadding="0" cellspacing="0" width="147">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<!-- 그리그 끝 -->
</div>

<script language="javascript">
	setMainMenu();
	fnCommonInit();
</script>
</BODY>
</HTML>